using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class WaybillIntoStationMap : EntityTypeConfiguration<WaybillIntoStation>
	{
		public WaybillIntoStationMap()
		{
			// Primary Key
			this.HasKey(t => t.WaybillIntoStationID);

			// Properties
			this.Property(t => t.IntoStationType)
				.HasMaxLength(20);
				
			// Table & Column Mappings
			this.ToTable("WaybillIntoStation");
			this.Property(t => t.WaybillIntoStationID).HasColumnName("WaybillIntoStationID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.IntoStationType).HasColumnName("IntoStationType");
			this.Property(t => t.IntoMan).HasColumnName("IntoMan");
			this.Property(t => t.IntoStation).HasColumnName("IntoStation");
			this.Property(t => t.IntoTime).HasColumnName("IntoTime");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
			this.Property(t => t.IsSyn).HasColumnName("IsSyn");
			this.Property(t => t.IsChange).HasColumnName("IsChange");
		}
	}
}

